#! /bin/sh

#compile ch01 hello world program

gcc ./src/01intro/hello.c -o ./bin/hello
./bin/hello


#compile ch01 hello world program step by step
gcc -E ./src/01intro/hello.c -o ./bin/hello.i
gcc -S ./bin/hello.i -o ./bin/hello.s
gcc -c ./bin/hello.s -o ./bin/hello.o
gcc ./bin/hello.o -o ./bin/hello2
./bin/hello2


#ch02 p21 test overflow

gcc ./src/02data/testoverflow.c -o ./bin/testoverflow
./bin/testoverflow


#ch02 p44 test casting

gcc -g ./src/02data/testcast.c -o ./bin/testcast
./bin/testcast


#ch10 p598 practice10.1

gcc ./src/10io/open.c -o ./bin/open -lpthread
./bin/open

